package com.siashan.toolkit.api.security;

import com.siashan.toolkit.api.security.properties.RestCryptoProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自动配置类
 *
 * @author  siashan
 * @version  V1.0.1
 **/
@Configuration
@EnableConfigurationProperties(RestCryptoProperties.class)
public class RestCryptoAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public RestCryptoProperties restCryptoProperties() {
        return new RestCryptoProperties();
    }

}
